import Login from '../views/login'
import Dashboard from '../views/Administrative/dashboard/index.vue'
import refresh from '../views/layout/refresh.vue'
import Home from '../views/layout/Home.vue'
import menuList from '../views/Administrative/system/menu/list.vue'
import menuAdd from '../views/Administrative/system/menu/add.vue'
import menuEdit from '../views/Administrative/system/menu/edit.vue'
import systemConfig from '../views/Administrative/system/config/add.vue'
import appConfig from '../views/Administrative/system/config/app.vue'
import ruleList from '../views/Administrative/system/rule/list.vue'
import ruleAdd from '../views/Administrative/system/rule/add.vue'
import ruleEdit from '../views/Administrative/system/rule/edit.vue'
import positionList from '../views/Administrative/structures/position/list.vue'
import positionAdd from '../views/Administrative/structures/position/add.vue'
import positionEdit from '../views/Administrative/structures/position/edit.vue'
import structuresList from '../views/Administrative/structures/structures/list.vue'
import structuresAdd from '../views/Administrative/structures/structures/add.vue'
import structuresEdit from '../views/Administrative/structures/structures/edit.vue'
import groupsAdd from '../views/Administrative/structures/groups/add.vue'
import groupsEdit from '../views/Administrative/structures/groups/edit.vue'
import groupsList from '../views/Administrative/structures/groups/list.vue'
import usersList from '../views/Administrative/accounts/admin/list.vue'
import usersAdd from '../views/Administrative/accounts/admin/add.vue'
import usersEdit from '../views/Administrative/accounts/admin/edit.vue'
import usersLog from '../views/Administrative/accounts/admin/log.vue'
import DbList from '../views/Administrative/system/Db/list.vue'
import signlogList from '../views/Administrative/system/signlog/list.vue'
import DemoList from '../views/Demo/index/list.vue'
import tableList from '../views/Demo/table/list.vue'
import tableExp from '../views/Demo/table/exp.vue'
import editorList from '../views/Demo/editor/list.vue'
import editorExplain from '../views/Demo/editor/exp.vue'
import uploadList from '../views/Demo/upload/list.vue'
import uploadExp from '../views/Demo/upload/exp.vue'
import formList from '../views/Demo/form/list.vue'
import formExp from '../views/Demo/form/exp.vue'
import excelList from '../views/Demo/excel/list.vue'
import excelExp from '../views/Demo/excel/exp.vue'
import iconsList from '../views/Demo/icons/list.vue'
import iconsExp from '../views/Demo/icons/exp.vue'
import Error from '../views/Error/404.vue'
import chartsList from '../views/Demo/charts/list.vue'
import chartsLine from '../views/Demo/charts/line.vue'
import chartsMix from '../views/Demo/charts/mix.vue'

import members from '../views/Pudu/members'
import shopmembers from '../views/Pudu/shopmembers'

import personal from '../views/Pudu/personal'
import shoppersonal from '../views/Pudu/shoppersonal'


import shops from '../views/Pudu/shops'
import adminshops from '../views/Pudu/adminshops'

import region from '../views/Pudu/region'
import province from '../views/Pudu/province'
import city from '../views/Pudu/city'

import products from '../views/Pudu/products/index.vue'
import goods  from '../views/Pudu/market/index.vue'
import shopgoods  from '../views/Pudu/market/shopgoods.vue'
import orderPayed from '../views/Pudu/orders/payed.vue'
import orderShipped from '../views/Pudu/orders/shipped.vue'
import orders from '../views/Pudu/orders/index.vue'
import sysOrders from '../views/Pudu/orders/sysOrders.vue'
import shopOrders from '../views/Pudu/orders/shopOrders.vue'
import Configs from '../views/Pudu/configs'
import memberrecords from '../views/Pudu/memberrecords'

import shopindex from '../views/Pudu/shopindex'

import sensible from '../views/Pudu/sensible'
import settle from '../views/Pudu/settle'
import dsmanage from '../views/Pudu/dsmanage'
// 市
import citypersonal from '../views/Pudu/citypersonal'
import cityrecords from '../views/Pudu/memberrecords'
import citycashes from '../views/Pudu/citycashes'
import cityrefer from '../views/Pudu/refer'
import cityshop from '../views/Pudu/cityshop'
import cityregion from '../views/Pudu/cityregion'
import citymembers from '../views/Pudu/normolmembers'


import cityindex from '../views/Pudu/cityindex'


// 区
import regionpersonal from '../views/Pudu/citypersonal'
import regionrecords from '../views/Pudu/memberrecords'
import regioncashes from '../views/Pudu/regioncashes'
import regionrefer from '../views/Pudu/refer'
import regionshop from '../views/Pudu/regionshop'
import regionindex from '../views/Pudu/regionindex'

import emoney from '../views/Pudu/emoney'
import checkEmoney from '../views/Pudu/checkemoney'
import cashes from '../views/Pudu/cashes'
import shopcashes from '../views/Pudu/cashes/shopcashes.vue'
import cashesAdmin from '../views/Pudu/cashes/indexAdmin.vue'

import referList from '../views/Pudu/refer'
import market from '../views/Pudu/market'

import balance from '../views/Pudu/balance';
import point from '../views/Pudu/point';
import washTimes from '../views/Pudu/washTimes';
import MemberwashTimes from '../views/Pudu/MemberwashTimes';

import washRecord from '../views/Pudu/washRecord';

import emoneyrecord from '../views/Pudu/emoneyrecord';

/**
 * meta参数解析
 * hideLeft: 是 否隐藏左侧菜单，单页菜单为true
 * module: 菜单所属模块
 * menu: 所属菜单，用于判断三级菜单是否显示高亮，如菜单列表、添加菜单、编辑菜单都是'menu'，用户列表、添加用户、编辑用户都是'user'，如此类推
 */

const routes = [
  {
    path: '/',
    redirect: '/cms/home/dashboard/list'
  },
  {
    path: '/cms/login',
    component: Login
  },
  {
    path: '/cms/home',
    component: Home,
    children: [{ path: '/refresh', component: refresh, name: 'refresh' }]
  },
  {
    path: '/cms/home',
    component: Home,
    name: 'dashboard',
    meta: { moduleName: '系统' },
    children: [
      {
        path: 'dashboard/list',
        component: Dashboard,
        name: '后台首页',
        meta: {
          hideLeft: false,
          module: 'Administrative',
          menu: 'menu',
          path: []
        }
      }
    ]
  },
  {
    path: '/cms/home',
    component: Home,
    name: '系统配置',
    meta: { moduleName: '系统' },
    children: [
      {
        path: 'menu/list',
        component: menuList,
        name: '菜单管理',
        meta: { hideLeft: false, module: 'Administrative', menu: 'menu' }
      },
      {
        path: 'menu/add',
        component: menuAdd,
        name: '添加菜单',
        meta: {
          hideLeft: false,
          module: 'Administrative',
          menu: 'menu',
          path: ['菜单管理']
        }
      },
      {
        path: 'menu/edit/:id',
        component: menuEdit,
        name: '编辑菜单',
        meta: {
          hideLeft: false,
          module: 'Administrative',
          menu: 'menu',
          path: ['菜单管理']
        }
      },
      {
        path: 'Db/list',
        component: DbList,
        name: '数据备份',
        meta: { hideLeft: false, module: 'Administrative', menu: 'Db' }
      },
      {
        path: 'config/add',
        component: systemConfig,
        name: '系统参数',
        meta: {
          hideLeft: false,
          module: 'Administrative',
          menu: 'systemConfig'
        }
      },
      {
        path: 'rule/list',
        component: ruleList,
        name: '权限规则',
        meta: { hideLeft: false, module: 'Administrative', menu: 'rule' }
      },
      {
        path: 'rule/add',
        component: ruleAdd,
        name: '添加权限',
        meta: {
          hideLeft: false,
          module: 'Administrative',
          menu: 'rule',
          path: ['权限规则']
        }
      },
      {
        path: 'rule/edit/:id',
        component: ruleEdit,
        name: '编辑权限',
        meta: {
          hideLeft: false,
          module: 'Administrative',
          menu: 'rule',
          path: ['权限规则']
        }
      },
      {
        path: 'signlog/list',
        component: signlogList,
        name: '登陆日志',
        meta: { hideLeft: false, module: 'Administrative', menu: 'signlog' }
      }
    ]
  },
  {
    path: '/cms/home',
    component: Home,
    name: '组织架构',
    meta: { moduleName: '系统' },
    children: [
      {
        path: 'position/list',
        component: positionList,
        name: '岗位管理',
        meta: { hideLeft: false, module: 'Administrative', menu: 'position' }
      },
      {
        path: 'position/add',
        component: positionAdd,
        name: '添加岗位',
        meta: {
          hideLeft: false,
          module: 'Administrative',
          menu: 'position',
          path: ['岗位管理']
        }
      },
      {
        path: 'position/edit/:id',
        component: positionEdit,
        name: '编辑岗位',
        meta: {
          hideLeft: false,
          module: 'Administrative',
          menu: 'position',
          path: ['岗位管理']
        }
      }
    ]
  },
  {
    path: '/cms/home',
    component: Home,
    children: [
      {
        path: 'structures/list',
        component: structuresList,
        name: 'structuresList',
        meta: { hideLeft: false, module: 'Administrative', menu: 'structures' }
      },
      {
        path: 'structures/add',
        component: structuresAdd,
        name: 'structuresAdd',
        meta: { hideLeft: false, module: 'Administrative', menu: 'structures' }
      },
      {
        path: 'structures/edit/:id',
        component: structuresEdit,
        name: 'structuresEdit',
        meta: { hideLeft: false, module: 'Administrative', menu: 'structures' }
      }
    ]
  },
  {
    path: '/cms/home',
    component: Home,
    name: '组织架构',
    meta: { moduleName: '系统' },
    children: [
      {
        path: 'groups/list',
        component: groupsList,
        name: '角色管理',
        meta: { hideLeft: false, module: 'Administrative', menu: 'groups' }
      },
      {
        path: 'groups/add',
        component: groupsAdd,
        name: '添加角色',
        meta: {
          hideLeft: false,
          module: 'Administrative',
          menu: 'groups',
          path: ['角色管理']
        }
      },
      {
        path: 'groups/edit/:id',
        component: groupsEdit,
        name: '编辑角色',
        meta: {
          hideLeft: false,
          module: 'Administrative',
          menu: 'groups',
          path: ['角色管理']
        }
      }
    ]
  },
  {
    path: '/cms/home',
    component: Home,
    name: '账户管理',
    meta: { moduleName: '系统' },
    children: [
      {
        path: 'users/list',
        component: usersList,
        name: '管 理 员',
        meta: { hideLeft: false, module: 'Administrative', menu: 'users' }
      },
      {
        path: 'users/add',
        component: usersAdd,
        name: '添加账户',
        meta: {
          hideLeft: false,
          module: 'Administrative',
          menu: 'users',
          path: ['管 理 员']
        }
      },
      {
        path: 'users/edit/:id',
        component: usersEdit,
        name: '编辑账户',
        meta: {
          hideLeft: false,
          module: 'Administrative',
          menu: 'users',
          path: ['管 理 员']
        }
      },
      {
        path: 'users/Log/:id',
        component: usersLog,
        name: '账户日志',
        meta: {
          hideLeft: false,
          module: 'Administrative',
          menu: 'users',
          path: ['管 理 员']
        }
      }
    ]
  },
  {
    path: '/cms/home',
    component: Home,
    name: '表格',
    meta: { moduleName: '模板' },
    children: [
      {
        path: 'table/list',
        component: tableList,
        name: '表格展示',
        meta: { hideLeft: false, module: 'Demo', menu: 'table' }
      },
      {
        path: 'table/exp',
        component: tableExp,
        name: '表格说明',
        meta: { hideLeft: false, module: 'Demo', menu: 'table' }
      }
    ]
  },
  {
    path: '/cms/home',
    component: Home,
    name: 'dashboard',
    meta: { moduleName: '模板' },
    children: [
      {
        path: 'Demo/list',
        component: DemoList,
        name: '介绍',
        meta: { hideLeft: false, module: 'Demo', menu: 'demo' }
      }
    ]
  },
  {
    path: '/cms/home',
    component: Home,
    name: '编辑器',
    meta: { moduleName: '模板' },
    children: [
      {
        path: 'editor/list',
        component: editorList,
        name: '编辑器说明',
        meta: { hideLeft: false, module: 'Demo', menu: 'editor' }
      },
      {
        path: 'editor/explain',
        component: editorExplain,
        name: '编辑器效果',
        meta: { hideLeft: false, module: 'Demo', menu: 'editor' }
      }
    ]
  },
  {
    path: '/cms/home',
    component: Home,
    name: '上传',
    meta: { moduleName: '模板' },
    children: [
      {
        path: 'upload/list',
        component: uploadList,
        name: '上传效果',
        meta: { hideLeft: false, module: 'Demo', menu: 'upload' }
      },
      {
        path: 'upload/exp',
        component: uploadExp,
        name: '上传说明',
        meta: { hideLeft: false, module: 'Demo', menu: 'upload' }
      }
    ]
  },
  {
    path: '/cms/home',
    component: Home,
    name: '表单',
    meta: { moduleName: '模板' },
    children: [
      {
        path: 'form/list',
        component: formList,
        name: '表单效果',
        meta: { hideLeft: false, module: 'Demo', menu: 'form' }
      },
      {
        path: 'form/exp',
        component: formExp,
        name: '表单说明',
        meta: { hideLeft: false, module: 'Demo', menu: 'form' }
      }
    ]
  },
  {
    path: '/cms/home',
    component: Home,
    name: 'Excel',
    meta: { moduleName: '模板' },
    children: [
      {
        path: 'excel/list',
        component: excelList,
        name: 'Excel效果',
        meta: { hideLeft: false, module: 'Demo', menu: 'excel' }
      },
      {
        path: 'excel/exp',
        component: excelExp,
        name: 'Excel说明',
        meta: { hideLeft: false, module: 'Demo', menu: 'excel' }
      }
    ]
  },
  {
    path: '/cms/home',
    component: Home,
    name: 'Icons',
    meta: { moduleName: '模板' },
    children: [
      {
        path: 'icons/list',
        component: iconsList,
        name: 'Icons效果',
        meta: { hideLeft: false, module: 'Demo', menu: 'icons' }
      },
      {
        path: 'icons/exp',
        component: iconsExp,
        name: 'Icons说明',
        meta: { hideLeft: false, module: 'Demo', menu: 'icons' }
      }
    ]
  },
  {
    path: '/cms/home',
    component: Home,
    name: '图表',
    meta: { moduleName: '模板' },
    children: [
      {
        path: 'charts/list',
        component: chartsList,
        name: '图表效果',
        meta: { hideLeft: false, module: 'Demo', menu: 'charts' }
      },
      {
        path: 'charts/line',
        component: chartsLine,
        name: '图表说明',
        meta: { hideLeft: false, module: 'Demo', menu: 'charts' }
      },
      {
        path: 'charts/mix',
        component: chartsMix,
        name: 'chartsMix',
        meta: { hideLeft: false, module: 'Demo', menu: 'charts' }
      }
    ]
  },
  {
    path: '/cms/pudu',
    component: Home,
    name: '会员管理',
    meta: { moduleName: '账户' },
    children: [
      {
        path: 'members',
        component: members,
        name: '会员列表',
        meta: {
          hideLeft: false,
          module: 'Pudu',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'cashes',
        component: cashesAdmin,
        name: '提现管理',
        meta: {
          hideLeft: false,
          module: 'Pudu',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'checkEmoney',
        component: checkEmoney,
        name: '电子币审核',
        meta: {
          hideLeft: false,
          module: 'Pudu',
          menu: 'menu',
          path: []
        }
      }
    ]
  },
  {
    path: '/cms/pudu',
    component: Home,
    name: '区管理',
    meta: { moduleName: '账户' },
    children: [
      {
        path: 'region',
        component: region,
        name: '区列表',
        meta: {
          hideLeft: false,
          module: 'Pudu',
          menu: 'menu',
          path: []
        }
      },
    ]
  },
  {
    path: '/cms/pudu',
    component: Home,
    name: '市账户管理',
    meta: { moduleName: '账户' },
    children: [
      {
        path: 'city',
        component: city,
        name: '市列表',
        meta: {
          hideLeft: false,
          module: 'Pudu',
          menu: 'menu',
          path: []
        }
      },
    ]
  },
  {
    path: '/cms/pudu',
    component: Home,
    name: '省账户管理',
    meta: { moduleName: '账户' },
    children: [
      {
        path: 'province',
        component: province,
        name: '省列表',
        meta: {
          hideLeft: false,
          module: 'Pudu',
          menu: 'menu',
          path: []
        }
      },
    ]
  },
  {
    path: '/cms/pudu',
    component: Home,
    name: '店铺管理',
    meta: { moduleName: '账户' },
    children: [
      {
        path: 'shop',
        component: adminshops,
        name: '系统店铺管理',
        meta: {
          hideLeft: false,
          module: 'Pudu',
          menu: 'menu',
          path: []
        }
      },
    ]
  },
  {
    path: '/cms/pudu',
    component: Home,
    name: '店铺管理',
    meta: { moduleName: '账户' },
    children: [
      {
        path: 'washRecord',
        component: washRecord,
        name: '理疗记录',
        meta: {
          hideLeft: false,
          module: 'Pudu',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'emoney',
        component: emoneyrecord,
        name: '系统电子币明细',
        meta: {
          hideLeft: false,
          module: 'Pudu',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'sysOrders',
        component: sysOrders,
        name: '系统订单管理',
        meta: {
          hideLeft: false,
          module: 'Pudu',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'sensible',
        component: sensible,
        name: '董事分红明细',
        meta: {
          hideLeft: false,
          module: 'Pudu',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'settle',
        component: settle,
        name: '结算',
        meta: {
          hideLeft: false,
          module: 'Pudu',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'dsmanage',
        component: dsmanage,
        name: '董事管理',
        meta: {
          hideLeft: false,
          module: 'Pudu',
          menu: 'menu',
          path: []
        }
      }
    ]
  },
  
  {
    path: '/cms/shop',
    component: Home,
    name: '店铺管理',
    meta: { moduleName: '店铺' },
    children: [
      {
        path: 'emoney',
        component: emoney,
        name: '电子币',
        meta: {
          hideLeft: false,
          module: 'Shop',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'personal',
        component: shoppersonal,
        name: '店铺信息',
        meta: {
          hideLeft: false,
          module: 'Shop',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'balance',
        component: balance,
        name: '账户记录',
        meta: {
          hideLeft: false,
          module: 'Shop',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'point',
        component: point,
        name: '店铺积分记录',
        meta: {
          hideLeft: false,
          module: 'Shop',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'washTimes',
        component: washTimes,
        name: '洗肠记录',
        meta: {
          hideLeft: false,
          module: 'Shop',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'memberscashes',
        component: cashes,
        name: '店铺提现记录',
        meta: {
          hideLeft: false,
          module: 'Shop',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'shopcashes',
        component: shopcashes,
        name: '会员提现明细',
        meta: {
          hideLeft: false,
          module: 'Shop',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'memberrefer',
        component: referList,
        name: '推荐列表',
        meta: {
          hideLeft: false,
          module: 'Shop',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'members',
        component: shopmembers,
        name: '店铺会员',
        meta: {
          hideLeft: false,
          module: 'Shop',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'shopOrders',
        component: shopOrders,
        name: '店铺订单管理',
        meta: {
          hideLeft: false,
          module: 'Shop',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'shopgoods',
        component: shopgoods,
        name: '店铺商品兑换',
        meta: {
          hideLeft: false,
          module: 'Shop',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'emoneyrecord',
        component: emoneyrecord,
        name: '电子币记录',
        meta: {
          hideLeft: false,
          module: 'Shop',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'shopindex',
        component: shopindex,
        name: '后台首页',
        meta: {
          hideLeft: false,
          module: 'Shop',
          menu: 'menu',
          path: []
        }
      }
    ]
  },
  {
    path: '/cms/pudu',
    component: Home,
    name: '产品管理',
    meta: { moduleName: '账户' },
    children: [
      {
        path: 'products',
        component: products,
        name: '产品列表',
        meta: {
          hideLeft: false,
          module: 'All',
          menu: 'menu',
          path: []
        }
      }
    ]
  },
  {
    path: '/cms/city',
    component: Home,
    name: '市管理',
    meta: { moduleName: '市代' },
    children: [
      {
        path: 'personal',
        component: citypersonal,
        name: '市个人信息',
        meta: {
          hideLeft: false,
          module: 'City',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'balance',
        component: cityrecords,
        name: '市账户记录',
        meta: {
          hideLeft: false,
          module: 'City',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'cashes',
        component: citycashes,
        name: '市提现申请',
        meta: {
          hideLeft: false,
          module: 'City',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'refer',
        component: cityrefer,
        name: '市推荐列表',
        meta: {
          hideLeft: false,
          module: 'City',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'shop',
        component: cityshop,
        name: '市下属店铺',
        meta: {
          hideLeft: false,
          module: 'City',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'region',
        component: cityregion,
        name: '市下属区县',
        meta: {
          hideLeft: false,
          module: 'City',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'members',
        component: citymembers,
        name: '市下属会员',
        meta: {
          hideLeft: false,
          module: 'City',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'cityindex',
        component: cityindex,
        name: '市首页',
        meta: {
          hideLeft: false,
          module: 'City',
          menu: 'menu',
          path: []
        }
      }
    ]
  },
  {
    path: '/cms/region',
    component: Home,
    name: '区县管理',
    meta: { moduleName: '区县' },
    children: [
      {
        path: 'personal',
        component: regionpersonal,
        name: '区个人信息',
        meta: {
          hideLeft: false,
          module: 'Region',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'balance',
        component: regionrecords,
        name: '区账户记录',
        meta: {
          hideLeft: false,
          module: 'Region',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'cashes',
        component: regioncashes,
        name: '区提现申请',
        meta: {
          hideLeft: false,
          module: 'Region',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'refer',
        component: regionrefer,
        name: '区推荐列表',
        meta: {
          hideLeft: false,
          module: 'Region',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'shop',
        component: regionshop,
        name: '区下属店铺',
        meta: {
          hideLeft: false,
          module: 'Region',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'members',
        component: citymembers,
        name: '区下属会员',
        meta: {
          hideLeft: false,
          module: 'Region',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'regionindex',
        component: regionindex,
        name: '区后台首页',
        meta: {
          hideLeft: false,
          module: 'Region',
          menu: 'menu',
          path: []
        }
      },
      
    ]
  },
  {
    path: '/cms/pudu',
    component: Home,
    name: '订单管理',
    meta: { moduleName: '订单' },
    children: [
      {
        path: 'orders/payed',
        component: orderPayed,
        name: '待发货',
        meta: {
          hideLeft: false,
          module: 'Orders',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'orders/shipped',
        component: orderShipped,
        name: '已发货',
        meta: {
          hideLeft: false,
          module: 'Orders',
          menu: 'menu',
          path: []
        }
      }
    ]
  },
  {
    path: '/cms/pudu',
    component: Home,
    name: '参数管理',
    meta: { moduleName: '参数' },
    children: [
      {
        path: 'configs',
        component: Configs,
        name: '参数列表',
        meta: {
          hideLeft: false,
          module: 'Config',
          menu: 'menu',
          path: []
        }
      }
    ]
  },
  {
    path: '/cms/pudu',
    component: Home,
    name: '用户记录',
    meta: { moduleName: '用户' },
    children: [
      {
        path: 'memberrecords',
        component: memberrecords,
        name: '用户记录',
        meta: {
          hideLeft: false,
          module: 'Pudu',
          menu: 'menu',
          path: []
        }
      }
    ]
  },
  {
    path: '/cms/pudu',
    component: Home,
    name: '商品列表',
    meta: { moduleName: '商城' },
    children: [
      {
        path: 'market',
        component: market,
        name: '商品列表',
        meta: {
          hideLeft: false,
          module: 'Market',
          menu: 'menu',
          path: []
        }
      }
    ]
  },
  {
    path: '/cms/pudu',
    component: Home,
    name: '个人中心',
    meta: { moduleName: '会员' },
    children: [
      {
        path: 'personal',
        component: personal,
        name: '会员信息',
        meta: {
          hideLeft: false,
          module: 'Members',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'balance',
        component: balance,
        name: '账户记录',
        meta: {
          hideLeft: false,
          module: 'Members',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'point',
        component: point,
        name: '会员积分记录',
        meta: {
          hideLeft: false,
          module: 'Members',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'washTimes',
        component: MemberwashTimes,
        name: '洗肠记录',
        meta: {
          hideLeft: false,
          module: 'Members',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'memberscashes',
        component: cashes,
        name: '会员提现记录',
        meta: {
          hideLeft: false,
          module: 'Members',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'memberrefer',
        component: referList,
        name: '推荐列表',
        meta: {
          hideLeft: false,
          module: 'Members',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'goods',
        component: goods,
        name: '用户商品列表',
        meta: {
          hideLeft: false,
          module: 'Members',
          menu: 'menu',
          path: []
        }
      },
      {
        path: 'orders',
        component: orders,
        name: '用户订单列表',
        meta: {
          hideLeft: false,
          module: 'Members',
          menu: 'menu',
          path: []
        }
      }
    ]
  },
  {
    path: '*',
    component: Error
  }
]
export default routes
